package javaboken;
import java.awt.*;
import javax.swing.*;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Bertil
 */
public class kap115 {
    public static void launchKap115(){
        Direkt d = new Direkt();
    }
}

class Direkt extends JFrame{
    public Direkt(){
        JLabel text = new JLabel("Blah blah blah");
        add(text);
        text.setOpaque(true);
        text.setBackground(Color.yellow);
        text.setForeground(Color.blue);
        text.setFont(new Font("Serif", Font.BOLD, 24));
        setSize(400,150);
        setVisible(true);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
    }

}
